import request from '@/utils/request'

// 查询上传轮播图列表
export function listImgsorting(query) {
  return request({
    url: '/imgsorting/imgsorting/list',
    method: 'get',
    params: query
  })
}

// 查询上传轮播图详细
export function getImgsorting(id) {
  return request({
    url: '/imgsorting/imgsorting/' + id,
    method: 'get'
  })
}

// 新增上传轮播图
export function addImgsorting(data) {
  return request({
    url: '/imgsorting/imgsorting',
    method: 'post',
    data: data
  })
}

// 修改上传轮播图
export function updateImgsorting(data) {
  return request({
    url: '/imgsorting/imgsorting',
    method: 'put',
    data: data
  })
}

// 删除上传轮播图
export function delImgsorting(id) {
  return request({
    url: '/imgsorting/imgsorting/' + id,
    method: 'delete'
  })
}
